<script lang="ts">
  import { defineComponent } from 'vue'
  
  export default defineComponent({
    setup () {
      return {
      }
    }
  })
</script>

<template>
  <div class="common-layout">
      <el-container>
        <el-header> 演示 一些Vue3的使用方法</el-header>
        <el-container>
          <el-aside width="200px">
            <el-menu
              :default-active="1"
              class="el-menu-vertical-demo"
              active-text-color="#ffd04b"
              background-color="#545c64"
              text-color="#fff"
              router
            >
              <el-menu-item index="/">
                <template #title>目录</template>
              </el-menu-item>
              <el-menu-item index="/about">
                <template #title>关于我们</template>
              </el-menu-item>
              
            </el-menu>
          </el-aside>
          <el-main>
            <hr>
            <!-- 路由出口 -->
            <!-- 路由匹配到的组件将渲染在这里 -->
            <router-view></router-view>
          </el-main>
        </el-container>
      </el-container>
    </div>
</template>

<style>
body {
  background-color:#f3e8d7;
}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: left;
  color: #2c3e50;
  background-color: #f5f2ed;
  margin: 0px;
}
.el-header{
  background-color: #959a9e;
  color: #f5f2ed;
  text-align: left;
}
.el-footer {
  background-color: #7e8285;
  color: #f5f2ed;
  text-align: left;
}

.el-aside {
  background-color: #6c747c;
  color: var(--el-text-color-primary);
  text-align: left;
  min-height: 700px;
}

.el-main {
  background-color: #f5f2ed;
  color: var(--el-text-color-primary);
  text-align: left;
  padding: 5px;
  min-height: 700px;
}
</style>
